package cn.tedu.charging.user.dao.repository.impl;

import cn.tedu.charging.user.dao.mapper.VehicleMapper;
import cn.tedu.charging.user.dao.repository.VehicleRepository;
import cn.tedu.charging.user.pojo.po.VehiclePO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class VehicleRepositoryImpl implements VehicleRepository {
    private final VehicleMapper mapper;
    public VehicleRepositoryImpl(VehicleMapper mapper) {
        this.mapper = mapper;
    }
    @Override
    public List<VehiclePO> selectUserVehicles(Integer userId) {
        return mapper.selectUserVehicles(userId);
    }
}
